package edu.rpi.bt.client.domain;

import java.io.Serializable;

import com.apress.progwt.client.domain.Loadable;
import com.apress.progwt.client.domain.User;

import edu.rpi.bt.client.domain.generated.AbstractComment;
/**
 * 
 * @author Ashoo
 * 
 *         
 */
public class Comment extends AbstractComment  implements Serializable, Loadable {
    public Comment() {

    }

    public Comment(long id) {
        setId(id);
    }

    public Comment(User author, Destination destination, String comment,
            int rating) {

        setUser(author);
        setDestination(destination);
        setComment(comment);
        setRating(rating);
       /*
        if (comment == null) {
            throw new UnsupportedOperationException(
                    "Comment cannot be null");
        }
        */
    }

    
}
